﻿function btnArchive() {
    if (act == -1) act = getParamValue("act");
    var v = nsarc.archive(act);
    window.parent.document.getElementById("right").src = "NotificationPanel.aspx";
}

function $(id) {
    return document.getElementById(id);
}

var act = -1;
function loadCase() {
    act = getParamValue("act");
    var v = nsarc.LoadActAndCases(act).value;
    if (v == null) return;
    $("caseid").value = v.Rows[0]["CASEID"];
    $("casetitle").value = v.Rows[0]["TITLE"];
    $("casecontent").value = v.Rows[0]["CONTENT"];
}
addLoadFuc(loadCase);